console.time("timer");
for (var i = 0; i < 10000; i++) {
    console.log(i)
}

console.timeEnd("timer");